package com.ityuan.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.ityuan.springcloud.client.user.entity.User;
import com.ityuan.springcloud.service.impl.UserHystrixServiceImpl;

@Component
@FeignClient(value = "springcloud-service-user",fallback=UserHystrixServiceImpl.class)
public interface UserFreignService {
	
	@GetMapping(value = "/user/get/{id}")
	User getUserById(@PathVariable("id") Long id);
}
